package com.lc.spring.aop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lc.spring.aop.dao.UserDao;
import com.lc.spring.aop.entity.User;
import com.lc.spring.aop.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	@Autowired
	private UserDao userDao;

	public int add(User user) {
		return userDao.add(user);
	}

	public void updateUser(User user) {
		userDao.update(user);
	//	throw new RuntimeException("123");
	}

}
